<template>
  <header>
    <h1>
      <img :src="img" alt="" />
    </h1>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-fangdajing"></i>
      <span>搜你喜欢的...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  data() {
    return {
      img: "./images/logo.png",
    };
  },
  methods:{
		goSearch(){
			this.$router.push('/search')
		}
	}
};
</script>

<style lang="scss" scoped>
header {
  z-index: 999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 1.1733rem;
  background: #b0352f;
  h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.24rem;
  }
  img {
    height: 0.5rem;
  }
  .search {
    width: 6.56rem;
    height: 0.8rem;
    background-color: #fff;
    border-radius: 15px;
    font-size: 0.3733rem;
    display: flex;
    align-items: center;
    color: #959595;
    i {
      font-size: 0.5rem;
      padding-left: 0.2667rem;
    }
    span {
      // display: block;
      height: 0.8rem;
      font-size: 0.4rem;
      line-height: 0.8rem;
      padding-left: 0.0533rem;
    }
  }
  .kefu {
    width: 1.1733rem;
    height: 1.1733rem;
    text-align: center;
  }
  .kefu i {
    font-size: 0.6rem;
    color: #fff;
    line-height: 1.1733rem;
  }
}
</style>


